﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OnCallData.aspx.cs" Inherits="OnCallData" %>

<%@ Register assembly="DayPilot" namespace="DayPilot.Web.Ui" tagprefix="DayPilot" %>

<%@ Register src="NewEntryCreator.ascx" tagname="NewEntryCreator" tagprefix="uc1" %>

<%@ Register src="CurrentEventViewer.ascx" tagname="CurrentEventViewer" tagprefix="uc2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        #TextArea1
        {
            width: 338px;
            height: 197px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div style="font-family: Tahoma; font-size: small">
        <uc1:NewEntryCreator ID="NewEntryCreator1" runat="server" />
    </div>
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        CellPadding="4" DataSourceID="SqlDataSource1" ForeColor="#333333" 
        GridLines="None" onselectedindexchanged="GridView1_SelectedIndexChanged" 
        AllowSorting="True" style="font-size: small">
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <Columns>
                    <asp:CommandField ShowSelectButton="True" />
                    <asp:BoundField DataField="ClientID" 
                        HeaderText="ClientID" SortExpression="ClientID" />
                    <asp:BoundField DataField="StartDate" HeaderText="StartDate" 
                        SortExpression="StartDate" DataFormatString="{0:d}" />
                    <asp:BoundField DataField="StartTime" HeaderText="StartTime" 
                        SortExpression="StartTime" DataFormatString="{0:t}" />
                    <asp:BoundField DataField="EndDate" HeaderText="EndDate" 
                        SortExpression="EndDate" DataFormatString="{0:d}" />
                    <asp:BoundField DataField="EndTime" HeaderText="EndTime" 
                        SortExpression="EndTime" DataFormatString="{0:t}" />
                    <asp:BoundField DataField="Notes" HeaderText="Notes" SortExpression="Notes" />
                    <asp:CheckBoxField DataField="Daily" HeaderText="Daily" 
                        SortExpression="Daily" />
                    <asp:CheckBoxField DataField="Weekly" HeaderText="Weekly" 
                        SortExpression="Weekly" />
                    <asp:CheckBoxField DataField="Monthly" HeaderText="Monthly" 
                        SortExpression="Monthly" />
                </Columns>
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <EditRowStyle BackColor="#999999" />
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            </asp:GridView>
    <br />
    <br />
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:ON-CALLConnectionString %>" 
                onselecting="SqlDataSource1_Selecting" 
                
                
                
                SelectCommand="SELECT [ClientID], [StartDate], [StartTime], [EndDate], [EndTime], [Notes], [Weekly], [Daily], [Monthly] FROM [data]">
            </asp:SqlDataSource>
            <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                ConnectionString="<%$ ConnectionStrings:ON-CALLConnectionString %>" 
                onselecting="SqlDataSource1_Selecting" 
               
                
                
                
                
                SelectCommand="SELECT [ClientID], [StartDate], [StartTime], [EndDate], [EndTime], [Notes], [ScheduleID] FROM [data]">
            </asp:SqlDataSource>
    <br />
    
    </form>
</body>
</html>
